package service.impl;

import dao.SupplierDao;
import dao.impl.SupplierDaoImpl;
import entity.Supplier;
import service.SupplierService;

import java.util.List;

public class SupplierServiceImpl implements SupplierService {
    private SupplierDao supplierDao  = new SupplierDaoImpl();

    @Override
    public List<Supplier> getAllSuppliers() {
        List<Supplier> suppliers = supplierDao.selectAllSuppliers();
        return suppliers;
    }

    @Override
    public void addSupplier(Supplier supplier) {
        supplierDao.addSupplier(supplier);
    }
}
